package com.px.project.module.ml.dto.requirements.plan;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;
import com.px.common.dto.Dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 物资系统》物资管理》物资需求计划子表数据传输对象
 *
 * @author 品讯科技
 * @date 2024-08
 */
@Getter
@Setter
@Accessors(chain = true)
public class RequirementsPlanItemDraftDto extends Dto {
    private static final long serialVersionUID = 9098933154668636524L;
    /**
     * 物资ID
     */
    private Long materialId;
    /**
     * 型号ID
     */
    private Long modelId;
    /**
     * 单位
     */
    @Length(max = 20, message = "单位不能超过20个字")
    private String unit;
    /**
     * 单价
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal unitPrice;
    /**
     * 设计用量
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal designQuantity;
    /**
     * 计划用量
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal planQuantity;
    /**
     * 税后单价
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal taxUnitPrice;
    /**
     * 税后总价
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal taxTotalPrice;
}